package com.zw.admin.server.dto.Device;

import java.util.Date;

// 温湿度传感器
@lombok.Data
public class Iot {

    public String iot_id;

    public String app_id;
    public String app_name;
    public String group_id;
    public String group_name;
    public String hardVer;
    public Date lastTime;
    public String name;
    public Date onlineTime;
    public String root_group_id;
    public String root_group_name;
    public String softVer;
    public String states;
    public boolean success;
    public Data data;

    @lombok.Data
    public static class Data {
        public double ENUM_1;
        public double LUX_1;
        public double MOISTURE_1;
        public double TEMPERATURE_1;

        public double ELECTRICITY_1;
        public double POWERS_1;
        public double QUANTITY_1;
        public double STRING_1;
        public double VOLTAGE_1;

        public CloudState cloud_state;
        public SyncState sync_state;
    }

    @lombok.Data
    public static class CloudState{
        public double DEV_SWITCH_STA_1;
        public double ENUM_1;
        public double ENUM_2;
        public double ENUM_3;
        public double ENUM_4;
    }

    @lombok.Data
    public static class SyncState{
        public double DEV_SWITCH_STA_1;
        public Date DEV_SWITCH_STA_1_BetaTime;
        public double ENUM_1;
        public Date ENUM_1_BetaTime;
        public double ENUM_2;
        public Date ENUM_2_BetaTime;
        public double ENUM_3;
        public Date ENUM_3_BetaTime;
        public double ENUM_4;
        public Date ENUM_4_BetaTime;
    }
}


